package com.xmb.common.service.impl;

import com.xmb.common.dao.XmbUserGroupMapper;
import com.xmb.common.entity.XmbUserGroup;
import com.xmb.common.service.UserGroupService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created by lyndon on 2019/4/19.
 */
@Service
public class UserGroupServiceImpl implements UserGroupService{

    @Resource
    private XmbUserGroupMapper userGroupMapper;

    @Override
    public XmbUserGroup findXmbUserGroupById(Long id) {
        XmbUserGroup userGroup = new XmbUserGroup();
        userGroup.setId(id);
        userGroup.setIsDelete(Boolean.FALSE);
        userGroup.setIsEffect(Boolean.TRUE);
        return userGroupMapper.findXmbUserGroupByConditions(userGroup);
    }
}
